package com.qf.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@TableName("t_order")
@Data
public class Order {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer member_id;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderDate;
    private String orderType;
    private String orderStatus;
    private Integer setmeal_id;

    @TableField(exist = false)
    private Member member;
    @TableField(exist = false)
    private Setmeal setmeal;

}
